var Bar = (function () {
    // creatDiv:string
    function Bar(oDiv, width, height, borderRadius, color, position) {
        this.oDiv = oDiv;
        this.width = width;
        this.height = height;
        this.borderRadius = borderRadius;
        this.color = color;
        this.position = position;
        oDiv.style.width = width;
        oDiv.style.height = height;
        oDiv.style.borderRadius = borderRadius;
        oDiv.style.backgroundColor = color;
        oDiv.style.position = position;
    }
    return Bar;
}());
function move(users) {
    setInterval(function () {
        users.oDiv.style.left = parseInt(Math.random() * 780) + "px";
        users.oDiv.style.top = parseInt(Math.random() * 380) + "px";
    }, 360);
}
for (var i = 0; i < 10; i++) {
    var bar = new Bar(document.createElement('div'), "20px", "20px", "50%", "red", "absolute");
    move(bar);
    document.getElementById("content").appendChild(bar.oDiv);
}
